interface HttpParam {
  url: string
  customConfig?: CustomConfig
}

export interface CustomConfig {
  showErrorMessage?: boolean
}

export const DEFAULT_CUSTOM_CONFIG: CustomConfig = {
  showErrorMessage: true
}

export interface GetParam extends HttpParam {
  params: { [key: string]: string }
}

export interface PostParam extends HttpParam {
  data: { [key: string]: any }
}
